package edu.sctu.practice.class02.liqiqi.assgin02;

/**
 * Created by uw on 2015/10/8.
 */
public class Rational {

    double value1;
    double value2;

    public Rational(double value1,double value2) {
        this.value1=value1;
        this.value2=value2;
    }
    public double add(){

        return value1+value2;

    }
    public double minus(){

        return  value1-value2;

    }
    public double multiply(){

        return value1*value2;

    }
    public double divide(){

        return value1/value2;

    }
}
